﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PBO
{
    public partial class SplashScreen : Form
    {

        #region Instance

        private static SplashScreen instance;

        public static SplashScreen GetInstance()
        {
            if (instance == null || instance.IsDisposed)
                instance = new SplashScreen();
            instance.MdiParent = MainForm.GetInstance();
            return instance;
        }

        #endregion

        public SplashScreen()
        {
            InitializeComponent();
        }

        private void SplashScreen_Load(object sender, EventArgs e)
        {
            ApplicationTitle.Text = "Pokemon Battle Online";



            ApplicationTitle.Location = new Point((this.Width - ApplicationTitle.Width) / 2, ApplicationTitle.Location.Y);
            Version.Location = new Point((this.Width - Version.Width) / 2, Version.Location.Y);
            picIcon.Image = Properties.Resources.mew.ToBitmap();
        }

        private void lblExit_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Environment.Exit(Environment.ExitCode);
        }
    }
}
